package com.daylightrobbery.server.packet.game.house;

import com.daylightrobbery.server.packet.type.DataPacket;
import com.daylightrobbery.server.packet.type.RoomDataPacket;
import org.springframework.stereotype.Component;

@Component
public class PayHousePacket implements RoomDataPacket {

    public static int type = 50003;
    public String uid;
    public int roomId;
    public int money;
    public String fromUid;
    public String dstUid;

    @Override
    public DataPacket process() {
        return this;
    }

    @Override
    public int getType() {
        return type;
    }

    public static void setType(int type) {
        PayHousePacket.type = type;
    }

    public String getUid() {
        return uid;
    }

    public PayHousePacket setUid(String uid) {
        this.uid = uid;
        return this;
    }

    @Override
    public int getRoomId() {
        return roomId;
    }

    public PayHousePacket setRoomId(int roomId) {
        this.roomId = roomId;
        return this;
    }

    public int getMoney() {
        return money;
    }

    public PayHousePacket setMoney(int money) {
        this.money = money;
        return this;
    }

    public String getFromUid() {
        return fromUid;
    }

    public PayHousePacket setFromUid(String fromUid) {
        this.fromUid = fromUid;
        return this;
    }

    public String getDstUid() {
        return dstUid;
    }

    public PayHousePacket setDstUid(String dstUid) {
        this.dstUid = dstUid;
        return this;
    }

    @Override
    public String toString() {
        return "PayMoneyPacket{" +
                "uid='" + uid + '\'' +
                ", roomId=" + roomId +
                ", money=" + money +
                ", fromUid='" + fromUid + '\'' +
                ", dstUid='" + dstUid + '\'' +
                '}';
    }
}
